package bo;

import dto.AdminLoginDTO;
import mapper.AdminLoginMapper;

public class AdminLoginBO {
     
     public boolean login(String username,String pass)
     {
         AdminLoginMapper adMap = new AdminLoginMapper();
         return adMap.login(username, pass);
     }
     
     public boolean addAdminAccount(AdminLoginDTO ad)
     {
         AdminLoginMapper adMap = new AdminLoginMapper();
         return adMap.addAdminAccount(ad);
     }
     
     public AdminLoginDTO getAdminAccount(String username)
     {
         AdminLoginMapper adMap = new AdminLoginMapper();
         return adMap.getAdminAccount(username);
     }
     
     public boolean updateAdminAccount(AdminLoginDTO ad)
     {
         AdminLoginMapper adMap = new AdminLoginMapper();
         return adMap.updateAdminAccount(ad);
     }
     
     public boolean changePassword(String username,String pass)
     {
         AdminLoginMapper adMap = new AdminLoginMapper();
         return adMap.changePassword(username, pass);
     }
     
}
